/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.entity.pm.realproperty;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 不动产现状登记信息表实体类
 *
 * @author BladeX
 * @since 2021-06-09
 */
@Data
@TableName("pm_real_property_quo")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "RealPropertyQuo对象", description = "不动产现状登记信息表")
public class RealPropertyQuo extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 填报单位
	*/
		@ApiModelProperty(value = "填报单位")
		private String fillingUnitId;
	/**
	* 不动产登记id
	*/
		@ApiModelProperty(value = "不动产登记id")
		@JsonSerialize(using = ToStringSerializer.class)
		private Long realPropertyId;
	/**
	* 编码
	*/
		@ApiModelProperty(value = "编码")
		private String code;
	/**
	* 年度
	*/
		@ApiModelProperty(value = "年度")
		private String year;
	/**
	* 土地入账价值
	*/
		@ApiModelProperty(value = "土地入账价值 是否每年公允值入账 为是时必填")
		private BigDecimal landBookValue;
	/**
	* 房产入账价值
	*/
		@ApiModelProperty(value = "房产入账价值 是否每年公允值入账 为是时必填")
		private BigDecimal houseBookValue;
	/**
	* 可出租面积(m²)
	*/
		@ApiModelProperty(value = "可出租面积(m²) 是否有可出租面积 为是时必填")
		private BigDecimal rentableArea;
	/**
	* 已出租面积(m²)
	*/
		@ApiModelProperty(value = "已出租面积(m²) 是否有可出租面积 为是时必填")
		private BigDecimal leasedArea;
	/**
	* 应收租金
	*/
		@ApiModelProperty(value = "应收租金 是否有可出租面积 为是时必填")
		private BigDecimal receivableRent;
	/**
	* 实收租金
	*/
		@ApiModelProperty(value = "实收租金 是否有可出租面积 为是时必填")
		private BigDecimal paidRent;
	/**
	* 收费车位个数
	*/
		@ApiModelProperty(value = "收费车位个数 是否有可出租面积 为是时必填")
		private Integer paidParkingNumber;
	/**
	* 应收金额
	*/
		@ApiModelProperty(value = "应收金额 是否有可出租面积 为是时必填")
		private BigDecimal receivableAmount;
	/**
	* 实收金额
	*/
		@ApiModelProperty(value = "实收金额 是否有可出租面积 为是时必填")
		private BigDecimal paidAmount;
	/**
	* 审批人
	*/
		@ApiModelProperty(value = "审批人")
		private String approvedUser;
	/**
	* 审批时间
	*/
		@ApiModelProperty(value = "审批时间")
		@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
		@JsonFormat(pattern = DateUtil.PATTERN_DATETIME, timezone = "Asia/Shanghai")
		private Date approvedTime;
	/**
	* 审批意见
	*/
		@ApiModelProperty(value = "审批意见")
		private String approvedOpinion;
	/**
	* 表单审批类型
	*/
		@ApiModelProperty(value = "表单审批类型")
		private String formType;

	/**
	 * 数据来源 null为系统填报 对应用户id
	 */
	@ApiModelProperty(value = "数据来源 null为系统填报 对应用户id")
	private String dataSource;

	/**
	 * 数据来源id
	 */
	@ApiModelProperty(value = "数据来源id", required = true)
	private String dataSourceId;

}
